package com.powernode.springboot;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.ConfigurationPropertiesScan;

//第三种方式，把配置赋值给对象。指定类
//@EnableConfigurationProperties({User.class, AppConfig.class})
//第四种方式。把配置赋值给对象。自动扫描，指定扫描的包路径
@ConfigurationPropertiesScan(basePackages = "com.powernode.springboot.config")
@SpringBootApplication
public class Springboot310ConfigBindToBeanApplication {

    public static void main(String[] args) {
        SpringApplication.run(Springboot310ConfigBindToBeanApplication.class, args);
    }

}
